package com.zpself.module.basic.打印日志;

/**
 * @author By ZengPeng
 * @Description
 * @date in  2020/9/25 10:57
 * @Modified By
 */
public class PrintLog {
    private static String format = "\n[%-4s] %-" + 10 + "s  剩余牌数： %-2s [%-8s]";

    public static void main(String[] args) {
        PrintLog.printNotice(format,"111","22232","22213","32131234");
    }

    //按占位符匹配打印日志
    public static void printNotice(String format, Object... args) {
        System.out.printf(format, args);
    }
}
